<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >

    <body>

        <ui:composition template="./../Template.xhtml">

            <ui:define name="title">
                Buscar formulario
            </ui:define>

            <ui:define name="body">
                <ice:panelGroup id="messagePanel" layout="block">
                    <ice:messages globalOnly="true" styleClass="jsfCenter" errorClass="errorMessages" infoClass="infoMessages" layout="table" />
                </ice:panelGroup>
                <ice:form id="searchFormularios" partialSubmit="true">
                    <fieldset class="form">
                        <legend class="form">Formularios</legend>
                        <table class="standardTable">
                            <tr>
                                <td class="tituloLateral"><ice:outputText value="Seleccione el área:" /></td>
                                <td class="messageRight"><ice:selectOneMenu style="width:150px" valueChangeListener="#{formulario.areaChange}" onchange="submit()" value="#{formulario.area}" id="areasMenu">
                                        <f:selectItem id="sinull" itemLabel="(no seleccionado)" itemValue="noseleccionado" />
                                        <f:selectItem id="si1" itemLabel="Asfalto" itemValue="Asfalto" />
                                        <f:selectItem id="si2" itemLabel="Suelos" itemValue="Suelos" />
                                        <f:selectItem id="si3" itemLabel="Hormigones" itemValue="Hormigones" />

                                </ice:selectOneMenu></td>
                                <td class="message"></td>
                            </tr>
                            <tr>
                                <td class="tituloLateral"><ice:outputText value="Seleccione el ensayo:" /></td>
                                <td class="messageRight"><ice:selectOneListbox style="width:220px" size="9" value="#{formulario.selectedEnsayo}" id="ensayosLB" >
                                        <f:selectItems value="#{formulario.ensayos}" />
                                    </ice:selectOneListbox></td>
                                <td class="message"><ice:message for="ensayosLB" errorClass="errorMessages" /></td>
                            </tr>
                            <tr>
                                <td class="tituloLateral"><ice:outputText value="N° OT:" /></td>
                                <td class="messageRight">
                                    <ice:inputText style="width:220px" validatorMessage="*" validator="#{formulario.validateNroOT}" id="nroot" value="#{formulario.formulario.nroOT}" action="#{formulario.search}">
                                        <f:converter converterId="OTConverter" />
                                    </ice:inputText>
                                </td>
                                <td class="message"><ice:message for="nroot" errorClass="errorMessages" /></td>
                            </tr>
                            <tr>
                                <td colspan="3" class="tableFooter"><ice:commandLink style="padding-left:10px;padding-right:10px" value="OK" action="#{formulario.search}" /></td>
                            </tr>
                        </table>
                    </fieldset>
                </ice:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
